{"version":3,"sources":["ui.viewer.js"],"names":["BX","namespace","UI","Viewer","Controller","options","this","items","currentIndex","handlers","baseContainer","document","body","setItems","isBodyPaddingAdded","cycleMode","hasOwnProperty","preload","stretch","cachedData","optionsByGroup","layout","container","content","inner","itemContainer","next","prev","close","error","loader","loaderContainer","loaderText","panel","actionPanel","ActionPanel","darkMode","floatMode","autoHide","showTotalSelectedBlock","showResetAllBlock","alignItems","renderTo","getPanelWrapper","bind","eventsAlreadyBinded","init","prototype","buildItemListByNode","node","promise","Promise","nodes","isSeparateItem","dataset","viewerGroupBy","slice","call","ownerDocument","querySelectorAll","loadExtensions","collectExtensionsForItems","then","map","buildItemByNode","fulfill","viewerSeparateItem","shouldProcessSeparateMode","length","shouldRunViewer","type","isDomNode","extensionSet","Set","forEach","isString","viewerExtension","add","extensions","ext","shouldLoadExtensions","push","extractTargetFromEvent","event","target","getEventTarget","maxDepth","parentNode","handleDocumentClick","tagName","closest","preventDefault","openSeparate","browser","IsMac","metaKey","ctrlKey","runActionByNode","open","getIndexByNode","bindEvents","keyPress","handleKeyPress","touchStart","handleTouchStart","touchEnd","handleTouchEnd","resize","adjustViewerHeight","showNext","showPrev","handleClickOnItemContainer","handleSliderCloseByEsc","window","getItemContainer","getNextButton","getPrevButton","getCloseButton","addCustomEvent","handleVisibleControls","ev","IsMobile","hasClass","documentElement","_timerIdReadingMode","clearTimeout","cursorInPerimeter","findParent","className","disableReadingMode","setTimeout","enableReadingMode","withTimer","isOnTop","classList","remove","offsetVertical","clientHeight","offsetHorizontal","clientWidth","y","x","isOpen","getZindex","getSlider","denyAction","adjustViewport","viewportNode","querySelector","_viewportContent","getAttribute","setAttribute","restoreViewport","unbindEvents","unbind","openByNode","actionId","additionalParams","runAction","index","item","getItemByIndex","actionToRun","getActions","find","action","id","console","log","isFunction","getViewerContainer","component","ZIndexManager","getComponent","getZIndex","isArray","Error","onCustomEvent","setController","collectExtensionsForAction","loadExt","actions","extension","appendItem","Item","reloadItem","indexOf","newItem","sourceNode","constructor","applyReloadOptions","show","hideErrorBlock","hideCurrentItem","showLoading","resetActionsInPanelByItem","getCurrentItem","load","loadedItem","processShowItem","asFirstToShow","catch","reason","processError","processPreload","updateControls","lockScroll","fromIndex","preloadIndex","itemByIndex","reload","isCurrentVisibleItem","reloadCurrentItem","hideLoading","contentWrapper","create","props","fragment","createDocumentFragment","appendChild","render","title","getTitle","children","text","containerModifiers","listContainerModifiers","apply","afterRender","adjustControlsSize","getContentWidth","contentWidth","style","width","maxWidth","controlWidth","offsetWidth","message","errors","code","replace","getSrc","html","description","getErrorBlock","viewType","prop","getString","convertItemActionsToPanelItems","href","attributes","fn","onclick","panelItem","isExternalLink","link","isAbsoluteLink","RegExp","test","getClass","location","hostname","URL","e","refineItemActions","defaultActions","download","src","buttonIconClass","edit","share","print","info","delete","getNakedActions","mergeEx","Function","params","actionString","eval","getLoader","zIndex","Loader","size","events","mousewheel","handleMouseWheelOnControlButton","controlNode","_timeoutIdMouseWheel","pointerEvents","_isOpen","addBodyPadding","padding","innerWidth","paddingRight","imBar","getElementById","borderColor","contains","borderRight","removeBodyPadding","removeProperty","focus","showPanel","register","overlay","getPanelContainer","overlayGap","bringToFront","background","draw","removeItems","addItems","beforeHide","cleanNode","allowToUseCycleMode","addClass","removeClass","nodeIndex","parseInt","Image","groupBy","getGroupBy","unregister","unbindAll","hidePanel","unLockScroll","isNumber","setTextOnLoading","textContent","height","tabIndex","touchObject","changedTouches","swipeDirection","startX","pageX","startY","pageY","startTime","Date","getTime","allowedTime","threshold","restraint","distanceX","distanceY","elapsedTime","Math","abs","BXIM","messenger","popupMessenger","SidePanel","Instance","getTopSlider","stopPropagation","setOptionsByGroup","getCachedData","setCachedData","data","unsetCachedData","addType","InlineController","arguments","__proto__","adjustZindex","renderItemByNode","buildItemByTypeAndNode","bindSourceNode","setPropertiesByNode","setActions","typeCode","viewerType","toLowerCase","triggerEventToFindTypeClass","types","viewerTypeClass","warn","unknown","image","plainText","video","audio","filter","isPlainObject","isElementNode","bindDelegate","findChildren","indexToShow","targetNode","instance","Object","defineProperty","enumerable","get","top","addEventListener","button"],"mappings":"CAAC,WAEA,aAEAA,GAAGC,UAAU,gBAEbD,GAAGE,GAAGC,OAAOC,WAAa,SAASC,GAKlCC,KAAKC,MAAQ,KACbD,KAAKE,aAAe,KACpBF,KAAKG,SAAW,GAChBH,KAAKI,cAAgBL,EAAQK,eAAiBC,SAASC,KAEvDN,KAAKO,SAASR,EAAQE,OAAS,IAE/BD,KAAKQ,mBAAqB,KAC1BR,KAAKS,UAAYV,EAAQW,eAAe,aAAcX,EAAQU,UAAY,KAC1ET,KAAKW,QAAUZ,EAAQW,eAAe,WAAYX,EAAQY,QAAU,EACpEX,KAAKY,QAAUb,EAAQW,eAAe,WAAYX,EAAQa,QAAU,MACpEZ,KAAKa,WAAa,GAClBb,KAAKc,eAAiB,GACtBd,KAAKe,OAAS,CACbC,UAAW,KACXC,QAAS,KACTC,MAAO,KACPC,cAAe,KACfC,KAAM,KACNC,KAAM,KACNC,MAAO,KACPC,MAAO,KACPC,OAAQ,KACRC,gBAAiB,KACjBC,WAAY,KACZC,MAAO,MAMR3B,KAAK4B,YAAc,IAAIlC,GAAGE,GAAGiC,YAAY,CACxCC,SAAU,KACVC,UAAW,MACXC,SAAU,MACVC,uBAAwB,MACxBC,kBAAmB,MACnBC,WAAY,SACZC,SAAU,WACT,OAAOpC,KAAKqC,mBACXC,KAAKtC,QAGRA,KAAKuC,oBAAsB,MAE3BvC,KAAKwC,QAGN9C,GAAGE,GAAGC,OAAOC,WAAW2C,UAAY,CAKnCC,oBAAqB,SAAUC,GAE9B,IAAIC,EAAU,IAAIlD,GAAGmD,QACrB,IAAIC,EAAQ,GAEZ,GAAI9C,KAAK+C,eAAeJ,GACxB,CACCG,EAAQ,CAACH,QAEL,GAAGA,EAAKK,QAAQC,cACrB,CACCH,EAAQ,GAAGI,MAAMC,KAAKR,EAAKS,cAAcC,iBAAiB,uCAAyCV,EAAKK,QAAQC,cAAgB,W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